Skip to content

build: optimize for build size - #7

Merged
azeam1 merged 1 commit into
mainfrom
OP-4983/optimize-build-size
Sep 18, 2026
Merged

azeam1 merged 1 commit into
mainfrom
OP-4983/optimize-build-size

Conversation

@azeam1

@azeam1 azeam1 commented Jun 17, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Low Risk
Only changes Cargo release build settings; no application logic, auth, or data handling is affected.

Overview
Adds a [profile.release] block to Cargo.toml so release builds of the cdylib crate are tuned for smaller artifact size instead of maximum speed.

Release builds now use opt-level = "z" (size-oriented optimization), link-time optimization (lto = true), symbol stripping (strip = true), and codegen-units = 1 to allow more aggressive whole-crate optimization at the cost of longer compile times.

Reviewed by Cursor Bugbot for commit b6ccc0a. Bugbot is set up for automated code reviews on this repo. Configure here.

@azeam1
azeam1 requested a review from svenne87 June 17, 2026 06:32
@azeam1
azeam1 merged commit 72fd41f into main Sep 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants